<%@page import="fr.p10.miage.gestionabsence.model.Etudiant"%>
<%@page contentType="text/html" pageEncoding="UTF-8" import="fr.p10.miage.gestionabsence.model.AgendaDay"%>
<jsp:useBean id="ad" class="fr.p10.miage.gestionabsence.model.AgendaDay" scope="request" />
<jsp:useBean id="utilisateur" class="fr.p10.miage.gestionabsence.model.Utilisateur" scope="session"/>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="">
        <title></title>
        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/font-awesome.css" rel="stylesheet">
        <link href="css/index-bo.css" rel="stylesheet">
        <link href="css/absencedujour.css" rel="stylesheet">
    </head>
  
    <body class="skin-black fixed">
        <header class="header">
            <a href="accueilEtudiant.jsp" class="logo">MIAGE NANTERRE</a>
            <nav class="navbar navbar-static-top" role="navigation">
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span><%= utilisateur.getPrenom()%> <%= utilisateur.getNom()%> <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
                                <li role="presentation"><a role="menuitem" tabindex="-1" href="#"><i class="glyphicon glyphicon-info-sign"></i> Profil</a></li>
                                <li role="presentation"><a href="deconnexion.do" role="menuitem" tabindex="-1"><i class="glyphicon glyphicon-log-out"></i> Déconnexion</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <aside class="left-side sidebar-offcanvas">                
                <section class="sidebar">
                    <ul class="sidebar-menu">

                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-folder"></i> <span>Absence</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="accueilEtudiant.do"><i class="fa fa-angle-double-right"></i> Aujourd'hui</a></li>
                                <li><a href="history.jsp"><i class="fa fa-angle-double-right"></i> Historique</a></li>
                                <li><a href="parametres.jsp"><i class="fa fa-angle-double-right"></i> Paramètres</a></li>
                            </ul>
                        </li>
                    </ul>
                </section>
            </aside>
            <aside class="right-side"> 
                <h2> Emploi du temps pour la journée </h2>
                <html:errors/>
                <%-- <section class="content-header">
                    <h1>
                        Information sur le cours actuel <br>
                        <small>Veuillez signaler votre présence au cours via le bouton ci-dessous</small>
                    </h1>
                    <a class="btn btn-info" href="absenceDuJour.do"><span class="fa fa-sign-in"></span> Signaler sa présence</a>

                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-folder"></i> Gestion des absences</a></li>
                        <li class="active">Aujourd'hui</li>
                </ol>
                </section> --%>
                <section class="content">   
                    <div class="container"> 
	<div class="row">
		<div class="timeline-centered">
                    
        <% AgendaDay Ad = (AgendaDay) request.getAttribute("ad");%>
        <% Etudiant etudiant = (Etudiant) session.getAttribute("utilisateur");%> 
        <% for(int i =0 ; i<Ad.getListeEc().size();i++) {%>
	<article class="timeline-entry">
		
		<div class="timeline-entry-inner">
                    <time class="timeline-time" datetime="2014-01-10T03:45"><span><% out.print(Ad.getListeEc().get(i).getNomEc()); %></span> <span>Today</span></time>
			
			<div class="timeline-icon bg-info">
				<i class="entypo-feather"></i>
			</div>
			
			<div class="timeline-label">
				<h2><a href="#"><% out.print(Ad.getListeEc().get(i).getNomEc()); %></a> <span><% out.print(Ad.getListeEc().get(i).getNomSalle()); %></span></h2>
				<p><% out.print(Ad.getListeEc().get(i).getEcDebut());%> - <% out.print(Ad.getListeEc().get(i).getEcFin()); %></p>                      
                                <td><a class="btn btn-info" href=<%="\"absenceDuJour.do?id="+Ad.getListeEc().get(i).getIdAgenda()+"\""%>><i class="fa fa-eye"></i></a></td>
			</div>
		</div>
		
	</article>
 

        <% }%>
</div>
	</div>
</div>
                </section>
            </aside>
        </div>
        
        <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> 
        <script src="js/bootstrap.js"/></script>
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
        <script src="js/app.js"/></script>
  </body>
</html>